package com.yidu.erp.service.beyondMoney;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yidu.erp.dao.BeyondMoneyMapper;
import com.yidu.erp.model.BeyondMoney;

@Service
public class MoneyServiceImp implements MoneyService{
	 @Resource
	 BeyondMoneyMapper beyondMoneyMapper;
	@Override
	public BeyondMoney selectByPrimaryKey(String moneyId) {
		
		return beyondMoneyMapper.selectByPrimaryKey(moneyId);
	}

	@Override
	public int insert(BeyondMoney record) {
		return beyondMoneyMapper.insertSelective(record);
	}

	@Override
	public int updateByPrimaryKeySelective(BeyondMoney record) {
		
		return beyondMoneyMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Map<String, Object> AllFdcure(Map<String, Object> param) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("data", beyondMoneyMapper.AllFdcure(param));
		map.put("count", beyondMoneyMapper.findAllRowCount());
		map.put("code", 0);
		map.put("msg", 0);
		return map;
	}
	
}
